//
// Created by Yun on 2025/2/26.
//

#ifndef TIMES_LICE_OS_H
#define TIMES_LICE_OS_H

#include "stdint.h"
#include "string.h"

#include "time_slice_os_cfg.h"

typedef void (*Task_Callback_TypeDef)(void* args);

uint8_t TimeSliceOS_Init(void* pstTSOSController);

uint8_t TimeSliceOS_Register(void* pstTSOSController,
                             uint8_t u8TimeSliceId,
                             uint8_t u8TaskPri,
                             Task_Callback_TypeDef pfnCallback,void* pArgs);

void TimeSliceOS_Run(void* pstTSOSController);

#endif //TIMES_LICE_OS_H
